package com.bugbuff.dubbo.server.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/**
 * 冻结用户
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "frozen_user")
public class FrozenUser implements Serializable {

    private static final long serialVersionUID = 3148619072405056857L;

    private ObjectId id; //主键id
    private Integer userId;//用户id
    private String userStatus;//用户状态，1为正常，2为冻结
    private Integer freezingTime;//冻结时间，1为冻结3天，2为冻结7天，3为永久冻结
    private Integer freezingRange;//冻结范围，1为冻结登录，2为冻结发言，3为冻结发布动态
    private String reasonsForFreezing;//冻结原因
    private String frozenRemarks;//冻结备注
    private String reasonsForThawing;//解冻原因
    private Long created; //冻结时间

}
